﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
namespace Business
{
    public class HocSinh_BUL
    {
        HocSinh_DA hs = new HocSinh_DA();
        public List<HOCSINH> LoadData()
        {
            return hs.LoadData();
        }
        public bool Them(string hoten, string gt, DateTime ngaysinh, string diachi, string email)
        {
            if (hs.Them(hoten, gt, ngaysinh, diachi, email))
                return true;
            else
                return false;
        }
        public bool Sua(int ma, string hoten, string gt, DateTime ngaysinh, string diachi, string email)
        {
            if (hs.Sua(ma,hoten, gt, ngaysinh, diachi, email))
                return true;
            else
                return false;
        }
        public bool Xoa(int ma)
        {
            if (hs.Xoa(ma))
                return true;
            else
                return false;
        }
        public string Laytuoimin()
        {
            return hs.Laytuoimin();
        }
        public string Laytuoimax()
        {
            return hs.Laytuoimax();
        }
        public bool QDTuoi(int tuoimin, int tuoimax)
        {
            if (hs.QDTuoi(tuoimin, tuoimax))
                return true;
            else
                return false;
        }
        //.................Danh muc 2..............
        public List<Object> Laylop()
        {
            return hs.Laylop();
        }
        public List<Object> LayHS()
        {
            return hs.LayHS();
        }
        public List<Object> Layhet(string ht)
        {
            return hs.Layhet(ht);
        }
        public bool ThemHS(string lop, string hoten, string ngs, string gt, string dc, string email)
        {
            if (hs.ThemHS(lop, hoten, ngs, gt, dc, email))
                return true;
            else
                return false;
        }
        public bool SuaHS(string lop, string hoten)
        {
            if (hs.SuaHS(lop, hoten))
                return true;
            else
                return false;
        }
        public bool XoaHS(string hoten)
        {
            if (hs.XoaHS(hoten))
                return true;
            else
                return false;
        }
        public bool Capnhat(string hoten, string lop)
        {
            if (hs.Capnhat(hoten, lop))
                return true;
            else
                return false;
        }
        public bool Delete(string ht)
        {
            if (hs.Delete(ht))
                return true;
            else
                return false;
        }
        public List<HOCSINHLOP> Getdata()
        {
            return hs.Getdata();
        }
        public string Demlop(string lop)
        {
            return hs.Demlop(lop);
        }
        public string Laysiso()
        {
            return hs.Laysiso();
        }
        //......................
        public void ThemTBHK(string hoten, string lop)
        {
            hs.ThemTBHK(hoten,lop);
        }
        public void CapnhatTBHK(string hoten, string lop, float tbhk1, float tbhk2, string hk)
        {
            hs.CapnhatTBHK(hoten,lop,tbhk1,tbhk2,hk);
        }
        public void XoaTBHK(string hoten, string lop)
        {
            hs.XoaTBHK(hoten,lop);
        }
        public void capnhatlai(string ten, string lop)
        {
            hs.capnhatlai(ten,lop);
        }
    }
}
